import Vue from 'vue';
import VueRouter from 'vue-router';
import HomeIndex from '@/views/person/home/HomeIndex'
import AssetIndex from '@/views/person/asset/AssetIndex'
import AssetList from '@/views/person/asset/AssetList'
import TodoIndex from '@/views/person/todo/TodoIndex'
import TodoList from '@/views/person/todo/TodoList'
import PlanIndex from "@/views/person/plan/PlanIndex";
import PlanList from "@/views/person/plan/PlanList";
import OtherIndex from '@/views/person/other/OtherIndex'

//注册路由组件
Vue.use(VueRouter);
//编写路由规则
const routes = [
    {
        path:"/",
        name:'HomeIndex',
        component:HomeIndex
    },
    {
        path:"/AssetIndex",
        name:'AssetIndex',
        component:AssetIndex
    },
    {
        path:"/AssetList",
        name:'AssetList',
        component:AssetList
    },
    {
        path:"/TodoIndex",
        name:'TodoIndex',
        component:TodoIndex
    },
    {
        path:"/TodoList",
        name:'TodoList',
        component:TodoList
    },
    {
        path:"/PlanIndex",
        name:'PlanIndex',
        component:PlanIndex
    },
    {
        path:"/PlanList",
        name:'PlanList',
        component:PlanList
    },
    {
        path:"/OtherIndex",
        name:'OtherIndex',
        component:OtherIndex
    },
]
//创建路由
const router = new VueRouter({
    mode:'hash',
    routes
})
//导出
export default router;